<template>
	<view class="Spike_box">
		<view class="Spike_box_top">
			<image class="spikeBG" src="../../../static/home/spike_banner.webp" mode="widthFix"></image>
			<view @click="backReturn" class="Spike_box_top_back">
				<image src="../../../static/home/back_White.png" mode="widthFix"></image>
			</view>
		</view>
		<view class="Spike_box_operate">
			<view @click="recordFun(1)" class="Spike_box_operate_list">
				<view class="Spike_box_operate_list_image">
					<image src="../../../static/home/spike_record.png" mode="widthFix"></image>
				</view>
				<view class="Spike_box_operate_list_text">
					秒杀记录
				</view>
			</view>
			<view class="Spike_box_operate_list">
				<view class="Spike_box_operate_list_image">
					<image src="../../../static/home/AppointmentRecord.png" mode="widthFix"></image>
				</view>
				<view class="Spike_box_operate_list_text">
					预约记录
				</view>
			</view>

			<view class="Spike_box_operate_list">
				<view class="Spike_box_operate_list_image">
					<image src="../../../static/home/TransferRecord.png" mode="widthFix"></image>
				</view>
				<view class="Spike_box_operate_list_text">
					转让记录
				</view>
			</view>
			<view class="Spike_box_operate_list">
				<view class="Spike_box_operate_list_image">
					<image src="../../../static/home/CollectionRecord.png" mode="widthFix"></image>
				</view>
				<view class="Spike_box_operate_list_text">
					收款记录
				</view>
			</view>
		</view>


		<view class="Spike_box_auction">
			<view class="Spike_box_auction_title">
				库存秒杀
			</view>
			<view class="Spike_box_auctionBox">
				<view @click="deteleLink" v-for="(item,index) in 3" class="Spike_box_auction_list">
					<view class="Spike_box_auction_list_imagebox">
						<image src="../../../static/home/miaoshatu.jpeg"></image>
					</view>
					<view class="Spike_box_auction_list_bar">
						20:00
					</view>
					<view class="Spike_box_auction_list_text">
						高档防水手表
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		created() {},
		methods: {
			recordFun(type) {
				uni.navigateTo({
					url: '/pages/index/SpikeRecord/SpikeRecord?type=' + type,
				});
			},
			backReturn() {
				uni.navigateBack({});
			},
			deteleLink() {
				// uni.navigateTo({
				// 	url: '/pages/index/Spikedetail/Spikedetail',
				// });
				uni.navigateTo({
					url: '/pages/index/SpikeRecordcollection/SpikeRecordcollection',
				});
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #E3E5E8;
	}

	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}

	.Spike_box {

		.Spike_box_top {
			position: relative;
			font-size: 0;

			.spikeBG {
				width: 100%;
				font-size: 0;
			}

			.Spike_box_top_back {
				position: absolute;
				width: 62upx;
				height: 62upx;
				background: rgba(0, 0, 0, 0.7);
				left: 32upx;
				top: calc(var(--status-bar-height) + 32upx);
				border-radius: 100%;
				display: flex;
				justify-content: center;
				align-items: center;

				image {
					width: 18upx;
				}
			}
		}


		.Spike_box_operate {
			display: flex;
			align-items: center;
			padding: 0 30upx;
			margin-top: 78upx;

			.Spike_box_operate_list {
				width: 25%;
				text-align: center;

				.Spike_box_operate_list_image {
					font-size: 0;

					image {
						width: 82upx;
					}
				}

				.Spike_box_operate_list_text {
					margin-top: 14upx;
					font-size: 22upx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #3764C8;
					line-height: 32upx;
				}
			}
		}

		.Spike_box_auction {
			padding: 30upx;
			padding-top: 0;
			margin-top: 44upx;

			.Spike_box_auction_title {
				font-size: 34upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(0, 0, 0, 0.9);
				line-height: 48upx;
			}

			.Spike_box_auctionBox {
				margin-top: 18upx;
				display: flex;
				flex-wrap: wrap;

				.Spike_box_auction_list {
					width: calc(50% - 15upx);
					font-size: 0;
					position: relative;
					border-radius: 18upx;
					overflow: hidden;
					margin-bottom: 30upx;

					.Spike_box_auction_list_imagebox {
						height: 368upx;
						border-radius: 18upx;
						font-size: 0;
						overflow: hidden;
						width: 100%;

						image {
							width: 100%;
							height: 100%;

						}
					}

					.Spike_box_auction_list_text {
						position: absolute;
						bottom: 0;
						left: 0;
						width: 100%;
						padding: 20upx 0;
						text-align: center;
						font-size: 28upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
						line-height: 40upx;
						background: rgba(0, 0, 0, 0.7);

						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					.Spike_box_auction_list_bar {
						position: absolute;
						right: 0;
						top: 0;
						padding: 4upx 12upx;
						background: #ED2525;
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
						line-height: 32upx;
					}

					&:nth-child(odd) {
						margin-right: 15upx;
					}

					&:nth-child(even) {
						margin-left: 15upx;
					}
				}
			}
		}
	}
</style>
